import request from "@/utils/request";




export function add(data) {
  return request({
    url: "/sinohis/pension/sys/dictionary/addRoomType/"+data.institutionNumber,
    method: 'post',
    data

  });

}
export function revise(data) {
  return request({
    url: "/sinohis/pension/sys/dictionary/modifyRoomTypeInfo/"+data.typeCode,
    method: 'put',
    data

  });

}
export function search(params) {
  return request({
    url: "/sinohis/pension/sys/dictionary/findAllRoomType/"+params.institutionNumber,
    method: 'get',
    params

  });

}
export function disable(params) {
  return request({
    url: "/sinohis/pension/sys/dictionary/disable/"+params.typeCode,
    method: 'put',
    params

  });

}
export function enable(params) {
  return request({
    url: "/sinohis/pension/sys/dictionary/enable/"+params.typeCode,
    method: 'put',
    params

  });

}
